<?php

namespace App\Models;



use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Spatie\EloquentSortable\Sortable;
use Spatie\EloquentSortable\SortableTrait;

class AreaJobPositionModel extends AbstractBaseModel
{

    protected $table = 'area_job_position';



    /**
     * 职位信息
     * @return HasOne
     */
    public function jobPositionInfo(): HasOne
    {
        return $this->HasOne(JobpositionModel::class, 'id', 'job_position_id');
    }
    /**
     * 广场信息
     * @return BelongsTo
     */
    public function plazaInfo(): BelongsTo
    {
        return $this->belongsTo(PlazaModel::class, 'plaza_id');
    }

}
